<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>上传文件</title>
    <style>
        .upload{
            position: relative;
        }
        .upitem{
            position: absolute;
            opacity: 0;
            left: 0;
            top:0;
        }
    </style>
</head>
<body>
<form action="/upload.html" method="POST" enctype="multipart/form-data">

    <p>用名名
        <input type="text" name="user">
        {% csrf_token %}
    </p>
    <div class="upload">
        <button class="btn btn-primary">上传</button>
        <input type="file" name="img" class="upitem">
    </div>

    <input type="submit" value="提交">
</form>
<script src="./statics/js/jquery-3.3.1.min.js"></script>
<script src="./statics/plugins/bootstrap-3.3.7/js/bootstrap.min.js"></script>
</body>
</html>